//调用接口配置文件
import { request } from 'config/request'
//获取商品列表
export async function getList (params) {
  return request({
    url: 'admin/seckill/queryOrderList',
    method: 'POST',
    headers: {
      'Content-type': 'application/json'
    },
    data: params
  })
}

//获取商品详情
export async function getDetail (params) {
  return request({
    url: `admin/seckill/queryOrderDetail/${params.id}`,
    method: 'GET',
    data: params
  })
}
//兑奖
export async function seckillOrderRedeem(params) {
  return request({
    url: 'admin/seckill/seckillOrderRedeem',
    method: 'POST',
    data: params,
  });
};